package com.dgut.finaldemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")
public class User {
    @TableId(type= IdType.AUTO) //自增（与数据库字段一致）
    private Integer uid;
    private Integer admin;
    private String username;
    private String password;

/*    @TableLogic //逻辑删除（1变成0）*/
    private Integer status;

}
